package com.culture.config.common.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain=true)
@NoArgsConstructor
public class ResponseData<T> {
	public static final String CODE_SUCCESS  = "000000";	
	public static final String CODE_EXCEPTION = "999999";	
	public static final String MSG_SUCCESS = "success";
	public static final String MSG_EXCEPTION = "system exception";
	public static final String MSG_OK = "ok";
	
	protected String code = CODE_SUCCESS;
	protected String message = MSG_OK;
	protected T data;
	
	public ResponseData(String code) {
		this.code = code;
	}
	
	public ResponseData(String code,String message) {
		this.code = code;
		this.message = message;
	}	
}
